import cv2  
import numpy
import matplotlib.pyplot as plot
cap = cv2.VideoCapture(0)
while(1):
    # get a frame
    ret, frame = cap.read()
    CAMARA = cv2.namedWindow('CAMARA', cv2.WINDOW_GUI_EXPANDED)
    # show a frame
    cv2.imshow("CAMARA", frame)
    if cv2.waitKey(1) & 0xFF == ord('1'):
        break

cap.release()
cv2.destroyAllWindows() 